﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms; 

namespace CourseArraging.Frm.jcxx
{
    /// <summary>
    /// 版权所有
    /// 石世特@温州医学院 sst330381@gmail.com
    /// </summary> 
    public class FrmInfoBase : FrmToolbarBase
    {
        // Fields
        protected BasicService.BasicServiceClient basicdao=new BasicService.BasicServiceClient();
        protected IContainer components;
        private GroupBox groupBox1;
        protected Label label_id;
        private Label label1;
        private Label label23;
        protected TextBox txt_content;

        // Methods
        public FrmInfoBase()
        {
            this.components = null; 
            this.InitializeComponent();
        }

        public FrmInfoBase(int id, string content)
        {
            this.components = null; 
            this.InitializeComponent();
            base.tsb_delete.Visible = false;
            base.tsb_print.Visible = false;
            base.tsb_refresh.Visible = false;
            base.tsb_print.Visible = false;
            base.tsb_search.Visible = false;
            this.label_id.Text = id.ToString();
            this.txt_content.Text = content;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.label23 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.txt_content = new System.Windows.Forms.TextBox();
            this.label_id = new System.Windows.Forms.Label();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // label23
            // 
            this.label23.Font = new System.Drawing.Font("微软雅黑", 10F);
            this.label23.ForeColor = System.Drawing.Color.Black;
            this.label23.Location = new System.Drawing.Point(32, 46);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(48, 20);
            this.label23.TabIndex = 94;
            this.label23.Text = "编 号 :";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Font = new System.Drawing.Font("微软雅黑", 10F);
            this.label1.ForeColor = System.Drawing.Color.Black;
            this.label1.Location = new System.Drawing.Point(32, 82);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(48, 20);
            this.label1.TabIndex = 96;
            this.label1.Text = "名 称 :";
            // 
            // txt_content
            // 
            this.txt_content.BackColor = System.Drawing.SystemColors.Window;
            this.txt_content.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.txt_content.Location = new System.Drawing.Point(86, 80);
            this.txt_content.Name = "txt_content";
            this.txt_content.Size = new System.Drawing.Size(184, 25);
            this.txt_content.TabIndex = 95;
            // 
            // label_id
            // 
            this.label_id.AutoSize = true;
            this.label_id.Font = new System.Drawing.Font("微软雅黑", 10F);
            this.label_id.ForeColor = System.Drawing.Color.Black;
            this.label_id.Location = new System.Drawing.Point(110, 46);
            this.label_id.Name = "label_id";
            this.label_id.Size = new System.Drawing.Size(0, 20);
            this.label_id.TabIndex = 97;
            // 
            // groupBox1
            // 
            this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.groupBox1.Controls.Add(this.label_id);
            this.groupBox1.Controls.Add(this.label23);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.txt_content);
            this.groupBox1.Location = new System.Drawing.Point(25, 45);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(307, 133);
            this.groupBox1.TabIndex = 98;
            this.groupBox1.TabStop = false;
            // 
            // FrmInfoBase
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.ClientSize = new System.Drawing.Size(360, 193);
            this.Controls.Add(this.groupBox1);
            this.Name = "FrmInfoBase";
            this.Text = "修改信息";
            this.Controls.SetChildIndex(this.groupBox1, 0);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        public override void tsb_new_fun()
        {
            this.label_id.Text = string.Empty;
            this.txt_content.Text = string.Empty;
        }
    }

 

}
